diff -r 717f4d34f468 io.c
--- a/io.c	Tue Mar 05 06:12:37 2013 +0000
+++ b/io.c	Tue Mar 05 06:17:04 2013 +0000
@@ -8020,7 +8020,7 @@
 
 #define DEFULT_IOCTL_NARG_LEN (256)
 
-#ifdef __linux__
+#if defined(__GLIBC__) && defined(__linux__)
 static long
 linux_iocparm_len(ioctl_req_t cmd)
 {
@@ -8053,7 +8053,7 @@
 #endif
 #ifdef IOCPARM_LEN
     len = IOCPARM_LEN(cmd);	/* on BSDish systems we're safe */
-#elif defined(__linux__)
+#elif defined(__GLIBC__) && defined(__linux__)
     len = linux_iocparm_len(cmd);
 #else
     /* otherwise guess at what's safe */
